package com.java0108;

public class Thread02 {
    public static void main(String[] args) {
        T t = new T();
        t.start();
        T t1 = new T();
        t1.start();

    }
}
class T extends Thread{
    @Override
    public void run() {
        while (true){
            System.out.println(Thread.currentThread().getName());
        }
    }
}